define(['server', 'jquery'], (server) => {
    class GetGoods {
        constructor() {
            this.getgoods().then((resp) => {
                //  = resp
                this.goods = resp
            })
        }
        getgoods() {
            return new Promise((resolve) => {
                $.get(server.baseServerUrl + '/api/v1/goods/select.php', resp => {
                    resolve(JSON.parse(resp))
                })
            })
        }
    }
    return GetGoods
})